function [cellParams] = CellConfig(platConfig)
    fileName = platConfig.cellParamsFileName;
    % Read cell configuration from Excel file
    [~, ~, raw] = xlsread(fileName);
    
    % Initialize cell parameters structure
    cellParams = struct();
    
    % Get headers from first row
    headers = raw(:,1);
    values = raw(:,2);
    
    % Assign values to structure fields based on headers
    for i = 1:length(headers)
        if ~isempty(headers{i})
            fieldName = matlab.lang.makeValidName(headers{i});
            cellParams.cellConfig.(fieldName) = values{i};
        end
    end
    
    cellParams = cellConfigParse(cellParams);

    cellParams.common.figSavePath  = platConfig.figSavePath;
    cellParams.common.dataSavePath = platConfig.dataSavePath;
    % Assign output arguments
    cellParams;
end

function [cellParams] = cellConfigParse(cellParams)
    cellScsIndex = cellParams.cellConfig.cellScsIndex;
    if cellScsIndex == 0
        cellSubCarrierSpacing = 15000;
    else cellScsIndex == 1
        cellSubCarrierSpacing = 30000;
    end
    perSampleTc = (480/cellSubCarrierSpacing);
    N_sc_RB = 12;


    cellParams.cellConfig.perSampleTc             = perSampleTc;
    cellParams.cellConfig.N_sc_RB                 = N_sc_RB;
    cellParams.cellConfig.cellSubCarrierSpacing   = cellSubCarrierSpacing;
    

    cellParams.cellConfig.perSampleTcExplain            = "一个符号周期内的采样点数";
    cellParams.cellConfig.N_sc_RBExplain                = "一个RB内的子载波数";
    cellParams.cellConfig.cellSubCarrierSpacingExplain  = "子载波频率";
end
